package com.qiangesoft.blog.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.qiangesoft.blog.common.mvc.PageQuery;
import com.qiangesoft.blog.common.mvc.PageResultVO;
import com.qiangesoft.blog.system.entity.SysDictData;
import com.qiangesoft.blog.system.pojo.vo.DictDataVO;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 字典数据 服务类
 * </p>
 *
 * @author qiange
 * @since 2023-06-01
 */
public interface ISysDictDataService extends IService<SysDictData> {

    PageResultVO<SysDictData> listDictData(PageQuery pageQuery, Long dictId, Boolean isPublish);

    void insertDictData(SysDictData dictData);

    void updateDictData(SysDictData dictData);

    void deleteBatch(List<Long> ids);

    void deleteDictData(Long id);

    Map<String, DictDataVO> getDataByDictType(List<String> types);
}
